package com.basic.business.storeIndicators.mapper;

import com.basic.business.storeIndicators.domain.TStoreIndicators;
import com.basic.common.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * 店铺指标数据Mapper接口
 *
 * @author zhaoxy_jn@163.com
 */
public interface TStoreIndicatorsMapper extends BaseMapper<TStoreIndicators> {

    /**
     * 根据文件id删除数据
     * @param fileId
     * @return
     */
    int deleteByFileId(String fileId);

    /**
     * 批量插入数据
     * @param list
     * @return
     */
    int saveBatch(List<TStoreIndicators> list);

    /**
     * 批量删除重复数据
     * @param storeId
     * @param statDateList
     * @return
     */
    int deleteOldData(@Param("storeId")String storeId, @Param("statDateList")List<Date> statDateList);

    /**
     * 条件查询
     * @param tStoreIndicators
     * @return
     */
    List<TStoreIndicators> searchList(TStoreIndicators tStoreIndicators);
}
